package com.sky.wsp.jar.utils;

public enum ConstantEnum {
  ADD("add"),
  REMOVE("remove");

  private String code;

  public String getCode() {
    return this.code;
  }

  public void setCode(String code) {
    this.code = code;
  }

  private ConstantEnum(String code) {
    this.code = code;
  }

  public static ConstantEnum getInstance(String code) {
    ConstantEnum[] var1 = values();
    int var2 = var1.length;

    for(int var3 = 0; var3 < var2; ++var3) {
      ConstantEnum constantEnum = var1[var3];
      if (constantEnum.getCode().equals(code)) {
        return constantEnum;
      }
    }

    return null;
  }
}